package com.yunji.generate.bean;

import java.io.Serializable;

/**
 *
 **/
public class ColumnInfo implements Serializable {

    /**
     * 是否主键
     */
    private boolean isPrimary;

    /**
     * Java 类名
     */
    private String columnClassName;

    /**
     * 列名称
     */
    private String columnName;

    ///////

    /**
     * 数据类型名称，比如 VARCHAR
     */
    private String typeName;

    /**
     * 数据类型
     */
    private Integer dataType;

    /**
     * 小数位数
     */
    private Integer decimalDigits;

    /**
     * 列长度
     */
    private Integer columnSize;

    /**
     * 列备注
     */
    private String remarks;

    public boolean isPrimary() {
        return isPrimary;
    }

    public void setPrimary(boolean primary) {
        isPrimary = primary;
    }

    public String getColumnClassName() {
        return columnClassName;
    }

    public void setColumnClassName(String columnClassName) {
        this.columnClassName = columnClassName;
    }

    public String getColumnName() {
        return columnName;
    }

    public void setColumnName(String columnName) {
        this.columnName = columnName;
    }

    public String getTypeName() {
        return typeName;
    }

    public void setTypeName(String typeName) {
        this.typeName = typeName;
    }

    public Integer getDataType() {
        return dataType;
    }

    public void setDataType(Integer dataType) {
        this.dataType = dataType;
    }

    public Integer getDecimalDigits() {
        return decimalDigits;
    }

    public void setDecimalDigits(Integer decimalDigits) {
        this.decimalDigits = decimalDigits;
    }

    public Integer getColumnSize() {
        return columnSize;
    }

    public void setColumnSize(Integer columnSize) {
        this.columnSize = columnSize;
    }

    public String getRemarks() {
        return remarks;
    }

    public void setRemarks(String remarks) {
        this.remarks = remarks;
    }

    @Override
    public String toString() {
        return "ColumnInfo [" +
                "isPrimary=" + isPrimary +
                ", columnClassName='" + columnClassName + '\'' +
                ", columnName='" + columnName + '\'' +
                ", remarks='" + remarks + '\'' +
                ']';
    }
}
